﻿<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="AIS.SharePoint.AspNetFBA.Layouts.AIS.SharePoint.AspNetFBA.UserList" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <asp:PlaceHolder ID="ToolBarPlaceHolder" runat="server">
        <asp:Literal ID="Literal10" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserList_ToolBar_Title%>" />
        <div style="padding-top: 4px;">
            <div style="float:left; width:100px;">
                <wssuc:ToolBar ID="onetidNavNodesTB" runat="server">
                    <Template_Buttons>
                        <wssuc:ToolBarButton 
                            runat="server" 
                            Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserList_ToolBar_btnNewUser_Text%>" 
                            ID="btnNewUser" 
                            NavigateUrl="javascript:(function(){var o={url:'/_layouts/AIS.SharePoint.AspNetFBA/UserCreate.aspx', dialogReturnValueCallback:SP.UI.ModalDialog.RefreshPage, allowMaximize:false}; SP.UI.ModalDialog.showModalDialog(o);})();"
                            ImageUrl="/_layouts/images/permissions16.png" 
                            AccessKey="U" />
                    </Template_Buttons>
                </wssuc:ToolBar>
            </div>
            <div style="padding-top: 8px">
                <asp:Panel runat="server" DefaultButton="btnSearch" ID="testPanel" Width="100%">
                    <table>
                        <tr>
                            <td>
                                <asp:TextBox runat="server" MaxLength="30" Columns="10" ID="txtSearch"/>                  
                            </td>
                            <td>
                                <asp:ImageButton runat="server" ImageUrl="/_layouts/images/gosearchv4.png" ID="btnSearch"/> 
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </div>
    </asp:PlaceHolder>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

    <SharePoint:MenuTemplate 
        ID="mnuUserList" 
        runat="server">
        <SharePoint:MenuItemTemplate 
            ID="mnuView" 
            runat="server" 
            Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserList_mnuView_Text%>" 
            ClientOnClickNavigateUrl="UserView.aspx?UserName=%UserName%"
            Title="View">
        </SharePoint:MenuItemTemplate>
    </SharePoint:MenuTemplate>

    <SharePoint:SPGridView 
        ID="gvUserList" 
        runat="server"
        AutoGenerateColumns="false" 
        AllowPaging="true" 
        PageSize="40" 
        AllowSorting="true"
        OnSorting="gvUserList_Sorting"
        >
        <Columns>
            <SharePoint:SPMenuField 
                HeaderText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_userList_Col_UserName_Text%>" 
                TextFields="UserName" 
                MenuTemplateId="mnuUserList"
                NavigateUrlFields="UserName" 
                NavigateUrlFormat="UserView.aspx?UserName={0}"
                TokenNameAndValueFields="UserName=UserName"
                SortExpression="UserName" />
            <SharePoint:SPBoundField DataField="FullName" HeaderText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserList_Col_FullName%>" SortExpression="FullName"/>
            <SharePoint:SPBoundField DataField="EMail" HeaderText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserList_Col_EMail%>" SortExpression="EMail"/>
            <SharePoint:SPBoundField DataField="CreatedOn" HeaderText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserList_Col_CreatedOn%>" SortExpression="CreatedOn"/>
            <SharePoint:SPBoundField DataField="LastLogon" HeaderText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserList_Col_LastLogon%>" SortExpression="LastLogon"/>
        </Columns>
    </SharePoint:SPGridView>
    <SharePoint:SPGridViewPager ID="SPGridViewPager1" GridViewId="gvUserList" runat="server" />

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserList_PageTitle%>" />
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
<asp:Literal ID="Literal2" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserList_TitleTitle%>" />
</asp:Content>
